from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^zhaofang/', include('zhaofang.foo.urls')),
    (r'^statics/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT}),

    # Uncomment the admin/doc line below to enable admin documentation:
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    #url(r'^', include('zinnia.urls.capabilities')),
    #url(r'^weblog/', include('zinnia.urls')),
    
    #url(r'^cms/', include('cms.urls')),
    (r'^',include('house.urls')),
    #(r'^',include('cms.urls')),

)

if settings.DEBUG:
    urlpatterns = patterns('',
        (r'^' + settings.MEDIA_URL.lstrip('/'), include('appmedia.urls')),
    ) + urlpatterns